import {LOGINPASS,LOGINNODE} from './../action/loginAction.js';
export function loginRedicer(state={userName:'',passWord:''},action){
    switch(action.type){
        case LOGINPASS:
            return Object.assign({},state,{userName:action.user,passWord:action.paaword})
        default:
            return state
    }
}